package com.ymttest.database.sharding.db.ext.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeliveryChangeHisExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeliveryChangeHisExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdIsNull() {
            addCriterion("delivery_id is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdIsNotNull() {
            addCriterion("delivery_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdEqualTo(Long value) {
            addCriterion("delivery_id =", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdNotEqualTo(Long value) {
            addCriterion("delivery_id <>", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdGreaterThan(Long value) {
            addCriterion("delivery_id >", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdGreaterThanOrEqualTo(Long value) {
            addCriterion("delivery_id >=", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdLessThan(Long value) {
            addCriterion("delivery_id <", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdLessThanOrEqualTo(Long value) {
            addCriterion("delivery_id <=", value, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdIn(List<Long> values) {
            addCriterion("delivery_id in", values, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdNotIn(List<Long> values) {
            addCriterion("delivery_id not in", values, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdBetween(Long value1, Long value2) {
            addCriterion("delivery_id between", value1, value2, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andDeliveryIdNotBetween(Long value1, Long value2) {
            addCriterion("delivery_id not between", value1, value2, "deliveryId");
            return (Criteria) this;
        }

        public Criteria andNewBillNoIsNull() {
            addCriterion("new_bill_no is null");
            return (Criteria) this;
        }

        public Criteria andNewBillNoIsNotNull() {
            addCriterion("new_bill_no is not null");
            return (Criteria) this;
        }

        public Criteria andNewBillNoEqualTo(String value) {
            addCriterion("new_bill_no =", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoNotEqualTo(String value) {
            addCriterion("new_bill_no <>", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoGreaterThan(String value) {
            addCriterion("new_bill_no >", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoGreaterThanOrEqualTo(String value) {
            addCriterion("new_bill_no >=", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoLessThan(String value) {
            addCriterion("new_bill_no <", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoLessThanOrEqualTo(String value) {
            addCriterion("new_bill_no <=", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoLike(String value) {
            addCriterion("new_bill_no like", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoNotLike(String value) {
            addCriterion("new_bill_no not like", value, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoIn(List<String> values) {
            addCriterion("new_bill_no in", values, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoNotIn(List<String> values) {
            addCriterion("new_bill_no not in", values, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoBetween(String value1, String value2) {
            addCriterion("new_bill_no between", value1, value2, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewBillNoNotBetween(String value1, String value2) {
            addCriterion("new_bill_no not between", value1, value2, "newBillNo");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeIsNull() {
            addCriterion("new_ymt_express_code is null");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeIsNotNull() {
            addCriterion("new_ymt_express_code is not null");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeEqualTo(String value) {
            addCriterion("new_ymt_express_code =", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeNotEqualTo(String value) {
            addCriterion("new_ymt_express_code <>", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeGreaterThan(String value) {
            addCriterion("new_ymt_express_code >", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeGreaterThanOrEqualTo(String value) {
            addCriterion("new_ymt_express_code >=", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeLessThan(String value) {
            addCriterion("new_ymt_express_code <", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeLessThanOrEqualTo(String value) {
            addCriterion("new_ymt_express_code <=", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeLike(String value) {
            addCriterion("new_ymt_express_code like", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeNotLike(String value) {
            addCriterion("new_ymt_express_code not like", value, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeIn(List<String> values) {
            addCriterion("new_ymt_express_code in", values, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeNotIn(List<String> values) {
            addCriterion("new_ymt_express_code not in", values, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeBetween(String value1, String value2) {
            addCriterion("new_ymt_express_code between", value1, value2, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andNewYmtExpressCodeNotBetween(String value1, String value2) {
            addCriterion("new_ymt_express_code not between", value1, value2, "newYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldBillNoIsNull() {
            addCriterion("old_bill_no is null");
            return (Criteria) this;
        }

        public Criteria andOldBillNoIsNotNull() {
            addCriterion("old_bill_no is not null");
            return (Criteria) this;
        }

        public Criteria andOldBillNoEqualTo(String value) {
            addCriterion("old_bill_no =", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoNotEqualTo(String value) {
            addCriterion("old_bill_no <>", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoGreaterThan(String value) {
            addCriterion("old_bill_no >", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoGreaterThanOrEqualTo(String value) {
            addCriterion("old_bill_no >=", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoLessThan(String value) {
            addCriterion("old_bill_no <", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoLessThanOrEqualTo(String value) {
            addCriterion("old_bill_no <=", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoLike(String value) {
            addCriterion("old_bill_no like", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoNotLike(String value) {
            addCriterion("old_bill_no not like", value, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoIn(List<String> values) {
            addCriterion("old_bill_no in", values, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoNotIn(List<String> values) {
            addCriterion("old_bill_no not in", values, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoBetween(String value1, String value2) {
            addCriterion("old_bill_no between", value1, value2, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldBillNoNotBetween(String value1, String value2) {
            addCriterion("old_bill_no not between", value1, value2, "oldBillNo");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeIsNull() {
            addCriterion("old_ymt_express_code is null");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeIsNotNull() {
            addCriterion("old_ymt_express_code is not null");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeEqualTo(String value) {
            addCriterion("old_ymt_express_code =", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeNotEqualTo(String value) {
            addCriterion("old_ymt_express_code <>", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeGreaterThan(String value) {
            addCriterion("old_ymt_express_code >", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeGreaterThanOrEqualTo(String value) {
            addCriterion("old_ymt_express_code >=", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeLessThan(String value) {
            addCriterion("old_ymt_express_code <", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeLessThanOrEqualTo(String value) {
            addCriterion("old_ymt_express_code <=", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeLike(String value) {
            addCriterion("old_ymt_express_code like", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeNotLike(String value) {
            addCriterion("old_ymt_express_code not like", value, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeIn(List<String> values) {
            addCriterion("old_ymt_express_code in", values, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeNotIn(List<String> values) {
            addCriterion("old_ymt_express_code not in", values, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeBetween(String value1, String value2) {
            addCriterion("old_ymt_express_code between", value1, value2, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOldYmtExpressCodeNotBetween(String value1, String value2) {
            addCriterion("old_ymt_express_code not between", value1, value2, "oldYmtExpressCode");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNull() {
            addCriterion("seller_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNotNull() {
            addCriterion("seller_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerIdEqualTo(Long value) {
            addCriterion("seller_id =", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotEqualTo(Long value) {
            addCriterion("seller_id <>", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThan(Long value) {
            addCriterion("seller_id >", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("seller_id >=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThan(Long value) {
            addCriterion("seller_id <", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThanOrEqualTo(Long value) {
            addCriterion("seller_id <=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIn(List<Long> values) {
            addCriterion("seller_id in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotIn(List<Long> values) {
            addCriterion("seller_id not in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdBetween(Long value1, Long value2) {
            addCriterion("seller_id between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotBetween(Long value1, Long value2) {
            addCriterion("seller_id not between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsIsNull() {
            addCriterion("offical_logistics is null");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsIsNotNull() {
            addCriterion("offical_logistics is not null");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsEqualTo(Boolean value) {
            addCriterion("offical_logistics =", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsNotEqualTo(Boolean value) {
            addCriterion("offical_logistics <>", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsGreaterThan(Boolean value) {
            addCriterion("offical_logistics >", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsGreaterThanOrEqualTo(Boolean value) {
            addCriterion("offical_logistics >=", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsLessThan(Boolean value) {
            addCriterion("offical_logistics <", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsLessThanOrEqualTo(Boolean value) {
            addCriterion("offical_logistics <=", value, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsIn(List<Boolean> values) {
            addCriterion("offical_logistics in", values, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsNotIn(List<Boolean> values) {
            addCriterion("offical_logistics not in", values, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsBetween(Boolean value1, Boolean value2) {
            addCriterion("offical_logistics between", value1, value2, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andOfficalLogisticsNotBetween(Boolean value1, Boolean value2) {
            addCriterion("offical_logistics not between", value1, value2, "officalLogistics");
            return (Criteria) this;
        }

        public Criteria andSourceTrackIsNull() {
            addCriterion("source_track is null");
            return (Criteria) this;
        }

        public Criteria andSourceTrackIsNotNull() {
            addCriterion("source_track is not null");
            return (Criteria) this;
        }

        public Criteria andSourceTrackEqualTo(Boolean value) {
            addCriterion("source_track =", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackNotEqualTo(Boolean value) {
            addCriterion("source_track <>", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackGreaterThan(Boolean value) {
            addCriterion("source_track >", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackGreaterThanOrEqualTo(Boolean value) {
            addCriterion("source_track >=", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackLessThan(Boolean value) {
            addCriterion("source_track <", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackLessThanOrEqualTo(Boolean value) {
            addCriterion("source_track <=", value, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackIn(List<Boolean> values) {
            addCriterion("source_track in", values, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackNotIn(List<Boolean> values) {
            addCriterion("source_track not in", values, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackBetween(Boolean value1, Boolean value2) {
            addCriterion("source_track between", value1, value2, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andSourceTrackNotBetween(Boolean value1, Boolean value2) {
            addCriterion("source_track not between", value1, value2, "sourceTrack");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}